package com.hwd.gmall.item.feign.fallback;

import com.hwd.gmall.common.result.Result;
import com.hwd.gmall.item.feign.ItemFeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * 商品详情微服务feign接口的降级类
 *
 * @author 黄伟东/Victor
 * @date 2022/4/25 18:37
 */
@Component
public class ItemFeignClientFallback implements ItemFeignClient {
    /**
     * 查询sku的详细信息,用于生成sku的详情页面
     *
     * @param skuId skuId
     * @return java.util.Map<java.lang.String,java.lang.Object>
     */
    @Override
    @GetMapping(value = "/getItemInfo/{skuId}")
    public Map<String, Object> getItemInfo(@PathVariable(value = "skuId") Long skuId) {
        return null;
    }
}
